import entityModelVersion from './entityModelVersion'

const pre = '/containerModelDesign'
const meta = {
  auth: true,
  menu: true,
}

export default {
  path: pre + '/version',
  name: 'ModelVersion',
  meta: {
    title: {
      'zh-CN': '模型版本管理',
      'en-US': 'routing model Version management',
    },
  },
  icon: 'md-options',
  children: [
    entityModelVersion,
    {
      path: pre,
      name: 'routingModelVersion',
      meta: {
        title: {
          'zh-CN': '工艺路线模型版本管理',
          'en-US': 'routing model Version management',
        },
      },
      children: [
        {
          path: pre + '/routing/workcenter/versionManagement',
          name: 'workcenterVersion',
          meta: {
            ...meta,
            title: {
              'zh-CN': '工作中心版本管理',
              'en-US': 'workcenter model version management',
            },
          },
        },
        {
          path: pre + '/routing/routing_selfDefined/versionManagement',
          name: 'routing_selfDefinedVersion',
          meta: {
            auth: true,
            menu: true,
            title: {
              'zh-CN': '工艺路线版本管理',
              'en-US': 'routing_selfDefined model version management',
            },
          },
        },
      ],
    },
    {
      path: pre,
      name: 'twinsModelVersion',
      meta: {
        title: {
          'zh-CN': '孪生模型版本管理',
          'en-US': 'twins model Version management',
        },
      },
      children: [
        {
          path: pre + '/twins/workunit/versionManagement',
          name: 'workunitVersion',
          meta: {
            auth: true,
            menu: true,
            title: {
              'zh-CN': '工位版本管理',
              'en-US': 'workunit model version management',
            },
          },
        },
        {
          path: pre + '/twins/twins_selfDefined/versionManagement',
          name: 'twins_selfDefinedVersion',
          meta: {
            auth: true,
            menu: true,
            title: {
              'zh-CN': '孪生自定义版本管理',
              'en-US': 'twins_selfDefined model version management',
            },
          },
        },
      ],
    },
    {
      path: pre,
      name: 'logicModelVersion',
      meta: {
        title: {
          'zh-CN': '逻辑模型版本管理',
          'en-US': 'logic model Version management',
        },
      },
      children: [
        {
          path: `${pre}/logic/versionManagement`,
          name: 'logicVersion',
          meta: {
            ...meta,
            title: {
              'zh-CN': '逻辑版本管理',
              'en-US': 'logic model version management',
            },
          },
        },
        {
          path: `${pre}/tank/versionManagement`,
          name: 'tankVersion',
          meta: {
            ...meta,
            title: {
              'zh-CN': '箱体版本管理',
              'en-US': 'tank model version management',
            },
          },
        },
        {
          path: `${pre}/staticLogic/versionManagement`,
          name: 'staticLogicVersion',
          meta: {
            ...meta,
            title: {
              'zh-CN': '静态逻辑版本管理',
              'en-US': 'staticLogic model version management',
            },
          },
        },
      ],
    },
    {
      path: pre,
      name: 'templateModelVersion',
      meta: {
        title: {
          'zh-CN': '模板模型版本管理',
          'en-US': 'template model Version management',
        },
      },
      // icon: 'md-options',
      children: [
        {
          path: `${pre}/template/versionManagement`,
          name: 'templateVersion',
          meta: {
            ...meta,
            title: {
              'zh-CN': '模板版本管理',
              'en-US': 'template model version management',
            },
          },
        },
      ],
    },
  ],
}
